package com.mxf.code.abstract_factory;

import org.springframework.stereotype.Component;
 
/**
 * @author zhangyifeng
 * @date  2021-10-16 16:59
 */
@Component
public class HeadmasterHandler implements PersonHandler {
 
    @Override
    public PersonEnum getPersonEnum() {
        return PersonEnum.HEADMASTER;
    }
 
    @Override
    public boolean handle() {
        System.out.println("校长校验器工作~~~~");
        // 写自己的校验逻辑
        return true;
    }
}